#!/usr/bin/env python
# -*- coding:utf-8 -*- 
# Author: Jeokayne Ataier

import socket

server = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)

server.bind(("127.0.0.1",8881))



while True:
    data ,(host,port) = server.recvfrom(1024)
    print(data,host,port)
    server.sendto("ok".encode("utf-8"),(host,port))